import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listDefinition(query) {
  return request({
    url: '/mark/definition/list',
    method: 'get',
    params: query,
  })
}

// 查询【请填写功能名称】详细
export function getDefinition(workFlowId) {
  return request({
    url: '/mark/definition/' + workFlowId,
    method: 'get',
  })
}

// 新增【请填写功能名称】
export function addDefinition(data) {
  return request({
    url: '/mark/definition',
    method: 'post',
    data: data,
  })
}

// 修改【请填写功能名称】
export function updateDefinition(data) {
  return request({
    url: '/mark/definition',
    method: 'put',
    data: data,
  })
}

// 删除【请填写功能名称】
export function delDefinition(workFlowId) {
  return request({
    url: '/mark/definition/' + workFlowId,
    method: 'delete',
  })
}

// 导出【请填写功能名称】
export function exportDefinition(query) {
  return request({
    url: '/mark/definition/export',
    method: 'get',
    params: query,
  })
}
